<?php header("Location 404.htm");Die();/*
<code>
//*/
$serialy = array();
$serialy['The Big Bang Theory']['1x14 - The Nerdmabelia Scattering'] = array(4,28,2008);
$serialy['The Big Bang Theory']['1x15 - The Shiksa Indeterminacy'] = array(5,5,2008);

$serialy['House']['4x12? No More Mr. Nice Guy'] = array(4,28,2008);


$serialy['SG:']['Continuum'] = array(7,29,2008);
$serialy['Eureka']['3x01'] = array(7,29,2008);
$serialy['Heroes']['3x01'] = array(9,15,2008);
$serialy['Heroes']['3x02'] = array(9,22,2008);


ereg('^[A-Z]* ([^ ]*) :$',$GLOBALS['IRC']->GetReplyPath(),$out);

eregi('.*![a-zA-Z]* (.*)',$GLOBALS['IRC']->GetLastLine(),$tmp);


foreach($serialy as $key => $val ){
	if (($tmp[1] == '') || eregi($tmp[1], $key) ){
		$vypsano = false;
		foreach ($val as $k => $v){
			if (($vypsano == false) && (mktime(23,59,0,$v[0],$v[1],$v[2]) - time())/(24*60*60)) {
				$vypsano = true;
				if (floor((mktime(23,59,0,$v[0],$v[1],$v[2]) - time())/(24*60*60)) == 0) $GLOBALS['IRC']->Action($out[1] ,'tvrdi, ze '.$key.' '.$k.' bude jiz odvysilan jiz dnes');
				else if (floor((mktime(23,59,0,$v[0],$v[1],$v[2]) - time())/(24*60*60)) == 1) $GLOBALS['IRC']->Action($out[1] ,'tvrdi, ze '.$key.' '.$k.' bude odvysilan za 1 den');
				else if (floor((mktime(23,59,0,$v[0],$v[1],$v[2]) - time())/(24*60*60)) == 1) $GLOBALS['IRC']->Action($out[1] ,'tvrdi, ze '.$key.' '.$k.' bude odvysilan za '.floor((mktime(23,59,0,$v[0],$v[1],$v[2]) - time())/(24*60*60)).' dny');
				else $GLOBALS['IRC']->Action($out[1] ,'tvrdi, ze '.$key.' '.$k.' bude odvysilan za '.floor((mktime(23,59,0,$v[0],$v[1],$v[2]) - time())/(24*60*60)).' dnu');
			}

		}
	}

}
srand(time());
if (rand() % 4 == 0 ) $GLOBALS['IRC']->Action($out[1] ,'do konce Mayskeho kalendare zbyva '.floor((mktime(0,0,0,12,21,2012) - time())/(24*60*60)).' dnu, svet jak ho zname konci :D');

</code>
*/?>